package com.crm.miaohe.controller.order.request;

import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class OrderDetailsModQtyRequest {

    private String fnumber;

    @Size(min = 1)
    @Valid
    List<OrderDetailsModQtyRequest.ModOrderInfo> modInfos;
    @Data
    public static class ModOrderInfo {
        @NotBlank
        private String productCode;

        @NotNull
        private double fqty;

    }
}
